package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.domain.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {

    public R<Page<Category>> adminCategoryPageSelect(String name,  Integer page, Integer pageSize);

    public R<List<Category>> adminCategoryList(String type );

    public R<String> adminCategoryUpdate (Category category);

    public  R<String> adminCategoryDelete(String id);

    public R<List<Category>> clientCategoryList();
}
